package com.yupi.yuojbackendjudgeservice;

import com.yupi.yuojbackendjudgeservice.rabbirmq.InitMainRabbitMq;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@ComponentScan("com.yupi")
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.yupi.yuojbackendserviceclient.service")
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class YuojBackendJudgeServiceApplication {

    public static void main(String[] args) {
        InitMainRabbitMq.doInitRabbitMq();
        SpringApplication.run(YuojBackendJudgeServiceApplication.class, args);
    }

}
